package com.niit.yhpojo.entity;

import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 销售订单表(SalesOrder)实体类
 *
 * @author makejava
 * @since 2025-06-23 10:45:38
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SalesOrder implements Serializable {
private static final long serialVersionUID = 233565368057197666L;
/**主键*/private Long id;
/**订单号*/private String orderNum;
/**用户ID*/private Long userId;
/**商品ID*/private Long productId;
/**数量*/private Integer quantity;
/**总价*/private Double totalPrice;
/**订单状态*/private String status;
/**创建时间*/private Date createdAt;
/**更新时间*/private Date updatedAt;
/** 用户姓名 */ private String userName;
/** 用户手机 */ private String userPhone;
/** 商品名称 */ private String productName;

    public String getStatus() {
        return this.status != null ? this.status.toLowerCase() : null;
    }
}
